﻿//=====================================================================================================
// LocalizationLibrary
// The Localization Library is a collection of reusable software component that provide 
// support for localization. This library enable you to localize WPF, Silverlight and WP7 applications.
// (http://localizationlibrary.codeplex.com)
//=====================================================================================================
// Author: Nicola Gallo (Website: www.nicola.gallo.name, Email: nicolagmt@hotmail.it) 
//=====================================================================================================

namespace HelloWorld.Services
{
    //.NET References
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Runtime.Serialization;
    using System.ServiceModel;
    using System.ServiceModel.Web;
    using System.Text;

    /// <summary>
    /// Interface that all localization service should implements.
    /// </summary>
    [ServiceContract]
    public interface ILocalizationService
    {
        //Methods

        /// <summary>
        /// Gets the localized resource value of the resource that has ResourceID equals to <paramref name="resourceID"/>.
        /// </summary>
        /// <param name="resourceID">Resource identifier.</param>
        /// <param name="langCode">Language code.</param>
        /// <returns>The localized resource value of the resource that has ResourceID equals to <paramref name="resourceID"/>.</returns>
        [OperationContract]
        string GetResourceValue(String resourceID, String langCode);
    }
}
